package demo.generic;

import java.util.LinkedList;
import java.util.List;

/**
 * @ClassName GenericDemo
 * @Description
 * @Author 47980
 * @Date 2020/6/8 21:43
 * @Version V_1.0
 **/
public class GenericDemo {

    public static void main(String[] args) {
        GeneticClassExample<String> stringGeneticClassExample = new GeneticClassExample<>("message");
        GeneticClassExample<Integer> integerGeneticClassExample = new GeneticClassExample<>(123);
        System.out.println(stringGeneticClassExample.getMember().getClass());
        System.out.println(integerGeneticClassExample.getMember().getClass());

        Integer[] integers = {1,2,3,4,5};
        Double[] doubles = {1.1, 2.2, 3.3, 4.4 ,5.5};
        Character[] characters = {'A','B','C'};

        stringGeneticClassExample.printArray(integers);
        stringGeneticClassExample.printArray(doubles);
        stringGeneticClassExample.printArray(characters);
    }
}
